const { defineConfig } = require('@vue/cli-service')

module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    host: 'localhost',
    port: 8081,
    client: {
      overlay: false,
      progress: false
    },
    webSocketServer: false, // 启用WebSocket服务器
    hot: true,  // 启用热模块替换
    liveReload: true, // 启用实时重载
    proxy: {
      '/': {
        target: 'http://localhost:4041',
        changeOrigin: true,
        ws: true // 保持WebSocket代理开启
      }
    }
  }
})
